﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BloxDTO
{
    public enum RegionType : byte
    {
        Default = 1
    }

    public enum BlockType : byte
    {
        Air = 0,
        Default = 1
    }

    public static class OpCode
    {
        public const byte Login = 0;
        public const byte Logout = 1;
        public const byte GetWorld = 2;
        public const byte GetRegion = 3;
        public const byte GetChunk = 4;
        public const byte GetBlock = 5;
        public const byte PlaceBlock = 6;
        public const byte Auth = 230;
    }

    public static class ReturnCode
    {
        public const byte Success = 0;
        public const byte Unknown = 1;
        public const byte Error = 2;
        public const byte UnknownUser = 3;
        public const byte InvalidPassword = 4;
        public const byte UnknownWorld = 5;
    }

    public static class EventCode
    {
        public const byte PlayerLogin = 0;
        public const byte PlayerLogout = 1;
    }
}
